package cn.chrisx.drad.audiencenetwork;

import android.view.ViewGroup;

import com.facebook.ads.Ad;
import com.facebook.ads.AdSize;
import com.facebook.ads.RewardData;

import cn.chrisx.drad.core.DrAdConfig;
import cn.chrisx.drad.core.DrAdPlatform;

/**
 * @author Jzfox <jz_boy@163.com>
 * @version 1.0
 * @date 2018/9/26 13:09
 * @description
 * @copyright ©2018 www.jzfox.net All rights reserved.
 */
public class AudienceNetworkAdConfig extends DrAdConfig {


    private AdSize adSize = AdSize.BANNER_320_50;

    private RewardData rewardData;

    public AdSize getAdSize() {
        return adSize;
    }

    public AudienceNetworkAdConfig banner(ViewGroup viewGroup, AdSize adSize) {
        setAdContainer(viewGroup);
        this.adSize = adSize;
        return this;
    }

    @Override
    protected String checkPlatform() {
        return Ad.class.getName();
    }

    @Override
    public DrAdPlatform platform() {
        return null;
    }

    public RewardData getRewardData() {
        return rewardData;
    }

    public void setRewardData(RewardData rewardData) {
        this.rewardData = rewardData;
    }
}
